{% extends "base.html" %}
{% import "_macros.html" as macros %}
{% block title %}BBS - 管理用户{% endblock %}
{% block page_content %}
<div class="page-header">
    <h1>所有用户 </h1>
</div>

<div class="pagination">
    {{ macros.pagination_widget(pagination, endpoint) }}
</div>

<table class="table table-hover followers">
    <thead><tr><th>用户</th><th>加入时间</th></tr></thead>
    {% for user in users %}
    <tr>
        <td>
            <a href="{{ url_for('.user', username = user.username) }}">
                <img class="img-rounded" src="{{user.gravatar(size=32) }}">
                {{ user.username }}
            </a>
        </td>
        <td>{{ moment(user.member_since).format('L') }}</td>
    </tr>
    {% endfor %}
</table>

<div class="pagination">
    {{ macros.pagination_widget(pagination, endpoint) }}
</div>
{% endblock %}